﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace QL_xxx
{
	/// <summary>
	/// Interaction logic for btnPhong.xaml
	/// </summary>
	public partial class btnPhong : UserControl
	{
        private string source;

        public string Source
        {
            get { return source; }
            set { source = value; }
        }
        private string tenPhong;

        public string TenPhong
        {
            get { return tenPhong; }
            set { tenPhong = value; }
        }
	    public btnPhong()
		{
			this.InitializeComponent();
		}
        public btnPhong(string _tenPhong, string _imageSource)
        {
           this.InitializeComponent();
           chu.Text= _tenPhong;
           hinh.Source = new BitmapImage(new Uri(_imageSource, UriKind.Relative));
           source = _imageSource;
        }
        public btnPhong Clone()
        {
            btnPhong res = new btnPhong(chu.Text, source);
            return res;
        }
       
	}
}